package com.jiazhong.继承.Extend01;

import com.jiazhong.继承.Extend01.Graduate;
import com.jiazhong.继承.Extend01.Pupil;

public class Test {
    public static void main(String[] args) {
        Pupil pupil=new Pupil();
        pupil.name="银角大王";
        pupil.age=11;
        pupil.Testing();
        pupil.setScore(80);
        pupil.showInfo();
        System.out.println("------------------");
        Graduate graduate=new Graduate();
        graduate.name="金角大王";
        graduate.age=23;
        graduate.testing();
        graduate.setScore(90);
        graduate.showInfo();
    }
}
